import { getQueryObj } from '../utils/url';

const queryObj=getQueryObj();
const url = 'chaowanjoy.com';
const  ENV_API_URL_LARAVEL = {
	development: `https://yfs-api-laravel-dev.${url}/index.php`, // 开发环境
	production: `https://yfs-lapi.${url}/index.php`, // 生产环境
	test: `https://yfs-api-laravel-test.${url}/index.php`, // 测试环境
}
const ENV_API_URL_SERVICES = {
	// development: 'http://192.168.10.123:62022', // 开发环境
	development: `https://yfs-services-dev.${url}/yfs-api-service.development`, // 开发环境
	production: `https://yfs-services.${url}/yfs-api-service`, // 生产环境
	test: `https://yfs-services-dev.${url}/yfs-api-service.staging`, // 测试环境
}

let API_URL_SERVICES='',API_URL_LARAVEL='';
if(queryObj.env){
	API_URL_SERVICES=ENV_API_URL_SERVICES[queryObj.env];
	API_URL_LARAVEL=ENV_API_URL_LARAVEL[queryObj.env];
}
export {
  API_URL_SERVICES,API_URL_LARAVEL
}